package com.leather.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leather.common.entity.Answer;
import com.leather.common.result.Result;
import com.leather.question.vo.AnswerAddVo;

public interface AnswerService extends IService<Answer> {


    /**
     * 新增回答
     * @param answerAddVo
     * @return
     */
    Result addAnswer(AnswerAddVo answerAddVo);


    /**
     *
     * @return
     */
    Result getByquestionId(int questionId,int pageId);

    /**
     *
     * @param answerId
     * @param userId
     * @return
     */
    Result deleteAnswer(int answerId,int userId);

    /**
     * 获取用户的所有回答
     * @param userId
     * @param pageId
     * @return
     */
    Result getUserAnswer(int userId,int pageId);

}
